import { handleActions } from 'redux-actions';
import { LOGIN_SUCCESS } from '../types/user'
const defaultState = {
    user: {}
}

export default handleActions({
    [LOGIN_SUCCESS](state, actions) {
        return {
            ...state,
            user: actions.payload.user
        }
    }
}, { defaultState })